Socket
Socket
Sign inDemoInstall

@paprika/stylers

Package Overview
Dependencies
90
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @paprika/stylers

Helpers and includes for styled-components


Version published
Maintainers
5
Created

Readme

Source

@paprika/stylers

Description

The stylers package is a companion for the tokens package, they are both implementations of the Starling Design System for use in styling user interfaces. The stylers are more than just simple values however, they are helper functions and bundles of CSS rules.

Installation

yarn add @paprika/stylers

or with npm:

npm install @paprika/stylers

Usage

stylers are intended for use internally and externally.

Internally, when contributors create Paprika components, and externally, when application developers consume Paprika to create user interfaces with the Starling Design System.

Consumers

Typically consumers will be using tokens with Sass. They can be included in any Sass file with:

@import "@paprika/stylers/lib/helpers.scss";

Then you should be able to use Sass functions like font-size() and spacer() as well as mixins like @include truncate-text; and @include focus-ring(true).

Contributors

For scalability, in implementation of the stylers is split into:

  • includes.js and formIncludes.js (for bundles of styling rules)
  • helpers.js (functions that take an input and generate a value or styling rule/rules).

FAQs

Last updated on 09 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc